import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description: 文件流，字符写操作
 */
public class Demo11 {
    public static void main(String[] args) {
        try(Writer writer = new FileWriter("d:/test.txt")) {
            writer.write("abcdef");
        } catch(IOException e) {
            e.printStackTrace();
        }
    }
}
